import React, { useEffect, useState } from 'react'
import { useLocation, useParams } from 'react-router-dom'
import request from "../../api/request";

function Detail() {
    const {state}=useLocation();
    console.log(state)
  return (
    <div>
      <dl>
        <dt>
            <img src={state.image} alt="" />
        </dt>
        <dd>
            <span style={{color:"red"}}>￥{state.price}</span>
            <br></br>
            <span>{state.date}</span>
        </dd>
      </dl>
    </div>
  )
}

export default Detail
